// 创建路由对象,并且配置号路由,然后吧路由对象导出
import { createRouter, createWebHistory } from "vue-router";

//创建路由对象router
const router = createRouter({

    //路由地址
    history:createWebHistory(),

    //配置路由规则
    routes:[
        {
            path:'/',
            component : () => import('../view/UserView.vue'),
        },
        {
            path:'/edit',
            component : () => import('../view/UserEditView.vue'),
        }
    ]
})



export default router;
